import request from '@/utils/request'

export function add(data) {
  return request({
    url: '/news',
    method: 'post',
    data
  })
}
export function update(data) {
  return request({
    url: '/news',
    method: 'put',
    data
  })
}

export function removenews(id) {
  return request({
    url: '/news/' + id,
    method: 'delete'
  })
}

export function page(data) {
  return request({
    url: '/news/page',
    method: 'post',
    data
  })
}

export function getNewsById(id) {
  return request({
    url: '/news/' + id,
    method: 'get'
  })
}




export function bannerID(data) {
  return request({
    url: '/banner/',
    method: 'put',
    data
  })
}




export function ediaLf(data) {
  return request({
    url: '/about/', 
    method: 'put',
    data
  })
}